package carstore.userserver.services;

import carstore.userserver.models.User;
import java.util.List;
import org.springframework.data.repository.CrudRepository;

public interface UserRepository extends CrudRepository<User, Long> {

        List<User> findByuserId(Integer userId);
        List<User> findByuserName(String userName);
        List<User> findByphone(String phone);
}
